#include "clueCardPlayStatusReqMessage.h"

ClueCardPlayStatusReqMessage::ClueCardPlayStatusReqMessage(MtpProtocol* packet) : MtpMessage(packet)
{
}

ClueCardPlayStatusReqMessage::ClueCardPlayStatusReqMessage(const int64_t& clueCardId, const int& channel) 
	: MtpMessage(new MtpProtocol(L"clueCardPlayStatusReq")), param(clueCardId, channel)
{
}

void ClueCardPlayStatusReqMessage::decodeBody()
{
	MtpMessage::decodeBody();
	param.jsonDeserialize(jsonContent);
}

void ClueCardPlayStatusReqMessage::encodeBody()
{
	jsonContent = param.jsonStr();
	MtpMessage::encodeBody();
}

const ClueCardParam& ClueCardPlayStatusReqMessage::getParam()
{
	return param;
}
